package com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.entity.Artical;
import com.req.ArticalReq;
import com.req.ArticalPageReq;
import com.res.ArticalRes;
import com.base.BasePageRes;
import com.res.UserRes;

public interface ArticalService extends IService<Artical> {
    /**
     * 帖子的增删改查
     * @param articalReq
     * @return
     */
    ArticalRes saveArtical(ArticalReq articalReq);

    BasePageRes queryPage(ArticalPageReq pageReq,UserRes userRes);

    /**
     * artical 表 descre,other_pre,other_resource_file where origin = 'jinxiujiaqi'
     * 修改wordpress来的文章
     * @param oldUrl
     * @param newUrl
     * @return
     */
    boolean replaceWordPressUrl(String oldUrl, String newUrl);
}
